<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>登录博客后台</title>

    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <script th:src="@{/assets/js/jquery.min.js}"></script>
    <script th:src="@{/assets/js/amazeui.min.js}"></script>
    <link rel="stylesheet" th:href="@{/assets/css/amazeui.min.css}"/>
    <link rel="stylesheet" th:href="@{/assets/css/app.css}"/>
</head>

<body>

<div class="am-u-lg-3 am-u-md-6 am-u-sm-8 am-u-sm-centered log-content">
    <br>
    <h1>欢迎登录</h1>
    <br>
    <div th:if="${param.error}" style="color: red">用户名或密码错误!</div>
    <form class="am-form" id="loginForm" th:action="@{/login}" method="post">
        <input type="text" class="am-radius" th:placeholder="请输入用户名" name="username"/>
        <br>
        <input type="password" class="am-form-field am-radius log-input" th:placeholder="请输入密码"
               name="password"/>
        <br>
        <input type="submit" th:value="登录"
               class="am-btn am-btn-primary am-btn-block am-btn-lg am-radius am-animation-slide-bottom log-animation-delay"/>
    </form>
</div>
</body>
</html>